package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CommodityPopularReq implements Serializable {

    @ApiModelProperty(required = true)
    @NotNull(message = "id不可为空")
    private Long id;

    @ApiModelProperty(value = "0-非爆款 1-爆款",required = true)
    @NotNull(message = "设置状态不可为空")
    @Range(min = 0,max = 1,message = "商品爆款状态只有两种")
    private Byte isPopular;
}
